package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZdfsqMapper;
import com.ruoyi.system.domain.Zdfsq;
import com.ruoyi.system.service.IZdfsqService;

/**
 * 招待费用申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-05
 */
@Service
public class ZdfsqServiceImpl implements IZdfsqService 
{
    @Autowired
    private ZdfsqMapper zdfsqMapper;

    /**
     * 查询招待费用申请
     * 
     * @param id 招待费用申请主键
     * @return 招待费用申请
     */
    @Override
    public Zdfsq selectZdfsqById(Long id)
    {
        return zdfsqMapper.selectZdfsqById(id);
    }

    /**
     * 查询招待费用申请列表
     * 
     * @param zdfsq 招待费用申请
     * @return 招待费用申请
     */
    @Override
    public List<Zdfsq> selectZdfsqList(Zdfsq zdfsq)
    {
        return zdfsqMapper.selectZdfsqList(zdfsq);
    }

    /**
     * 新增招待费用申请
     * 
     * @param zdfsq 招待费用申请
     * @return 结果
     */
    @Override
    public int insertZdfsq(Zdfsq zdfsq)
    {
        return zdfsqMapper.insertZdfsq(zdfsq);
    }

    /**
     * 修改招待费用申请
     * 
     * @param zdfsq 招待费用申请
     * @return 结果
     */
    @Override
    public int updateZdfsq(Zdfsq zdfsq)
    {
        return zdfsqMapper.updateZdfsq(zdfsq);
    }

    /**
     * 批量删除招待费用申请
     * 
     * @param ids 需要删除的招待费用申请主键
     * @return 结果
     */
    @Override
    public int deleteZdfsqByIds(Long[] ids)
    {
        return zdfsqMapper.deleteZdfsqByIds(ids);
    }

    /**
     * 删除招待费用申请信息
     * 
     * @param id 招待费用申请主键
     * @return 结果
     */
    @Override
    public int deleteZdfsqById(Long id)
    {
        return zdfsqMapper.deleteZdfsqById(id);
    }
}
